package com.zzy.springboottest.beans;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "server-config")
public class Server {

    private String name;

    private String ip;

}
